import request from '../../utils/request.js'

// export function getList(params){
//   const queryString = new URLSearchParams(params).toString()
//   return request.request(`/project/query?${queryString}`)
// }
// export function getSearchList(params) {
//   const queryString = new URLSearchParams(params).toString()
//   return request.request(`/project/query?${queryString}`)
// }
// export function deleteAllTest(params){
//   const ids = new URLSearchParams(params).toString()
//   return request.post(`/project/deletelist?${ids}`)
// }
export function getzzList(params){
  const queryString = new URLSearchParams(params).toString()
  return request.request(`/sys-dept/tree?${queryString}`)
}
export function getSearchList(params){
  const queryString = new URLSearchParams(params).toString()
  return request.request(`/sys-dept/list?${queryString}`)
}
export function addZz(params){
  return request.post('/sys-dept/add',params)
}
export function updateZz(params){
  return request.post('/sys-dept/update',params)
}
export function deleteZz(params){
  // return request.post(`/sys-dept/delete/${params}`)
  return request.post('/sys-dept/delete',params)
}
export function getHomeData(params){
  const queryString = new URLSearchParams(params).toString()
  return request.request(`/bigData/info?${queryString}`)
}